<?php
/**
 * Author:xsc
 * Time:2023/9/4 18:57
 */

namespace App\Params\Common;

use App\Params\BaseParam;

class MerchantsParams extends BaseParam
{

    public $mid;

    public $page;

    public $page_size;

    /**
     * 字段校验规则
     * @return string[]
     * Author:xsc
     * Time:2023/9/4 17:54
     */
    public function rules()
    {
        return [
            'mid'       => 'required|string',
            'page'      => 'int',
            'page_size' => 'int',
        ];
    }

    /**
     * 参数错误提示
     * @return string[]
     * Author:xsc
     * Time:2023/9/4 17:54
     */
    public function message()
    {
        return [
            "mid.required" => "商户号不能为空",
        ];
    }

    public function getMid()
    {
        return $this->mid;
    }

    public function getPage()
    {
        return $this->page;
    }

    public function getPageSize()
    {
        return $this->page_size;
    }
}
